import Vue from "vue";

import VueRouter from 'vue-router'

// 引入路由
import Home from '../pages/Home'
import Login from '../pages/Login'

Vue.use(VueRouter)


export default new VueRouter({
    //在实例化路由器对象的配置中,书写路由表配置
    routes: [
        { path: '/Home', component: Home },
        { path: '/Login', component: Login }
    ]
})